import request from '../utils/request.js';

function login(data){
    return request.postRequest('/api/user/login',data);
}
function getUserList(data){
    return request.getRequest('/api/user/getUserList',data);
}
function logoutUser(data){
    return request.postRequest('/api/user/logoutUser',data);
}
function getUserInfoById(data){
    return request.getRequest('/api/user/getUserInfoById',data);
}
function updateUserInfo(data){
    return request.postRequest('/api/user/updateUserInfo',data);
}
export default {
    login,
    getUserList,
    logoutUser,
    getUserInfoById,
    updateUserInfo
}